//
//  LoginViewController.m
//  VoSAT
//
//  Created by 王译 on 2018/4/22.
//  Copyright © 2018年 王. All rights reserved.
//

#import "LoginViewController.h"
#import "LoginView.h"
#import "MainViewController.h"
@interface LoginViewController ()
{
    LoginView *loginView;
}
@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    loginView = [[LoginView alloc]init];
    self.view = loginView;
    [loginView.loginBtn addTarget:self action:@selector(loginClick:) forControlEvents:UIControlEventTouchUpInside];
    // Do any additional setup after loading the view.
}

-(void)loginClick:(id)sender{
    NSLog(@"hehe");
    [self presentViewController:[MainViewController alloc] animated:YES completion:^{
    
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
